package cn.zwk.common.to.es;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 用于传输ES对象
 * @Created: with IntelliJ IDEA.
 * @author: 朱文康
 * @createTime: 2020-06-06 14:07
 **/
@Data
public class SkuEsModel {

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;
    /**
     * 是否有库存
     */
    private Boolean hasStock;
    /**
     * 热度评分
     */
    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attrs> attrs;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Attrs {

        private Long attrId;

        private String attrName;

        private String attrValue;

    }


}
